<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>
    <title>用户登录|{:config('APP_TITLE')}</title>
    <link href="__STATIC__/favicon.ico" type="image/x-icon" rel="shortcut icon">
    <link rel="stylesheet" type="text/css" href="__STATIC__/zui/css/zui.lite.min.css"/>
    <link type="text/css" href="__STATIC__/admin/theme/{$_theme_style|default='default'}.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/login.css">
    <script type="text/javascript" src="__STATIC__/zui/lib/jquery/jquery.js"></script>
    <script type="text/javascript" src="__STATIC__/zui/js/zui.lite.min.js"></script>

    <!--[if lt IE 9]>
    <script src="__STATIC__/zui/lib/ieonly/html5shiv.js"></script>
    <script src="__STATIC__/zui/lib/ieonly/respond.js"></script>
    <![endif]-->
</head>
<body>
<!--[if lt IE 8]>
<div class="alert alert-danger">您正在使用 <strong>过时的</strong> 浏览器. 是时候 <a href="http://browsehappy.com/">更换一个更好的浏览器</a>
    来提升用户体验.
</div>
<![endif]-->
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="text-center" style="margin-top: 40px;margin-bottom: 30px; color: #039BE5;">
                        <p><i class="icon icon-2x icon-th"></i> </p>
                        <h1 style="font-weight: normal;">{:config('app_title')}</h1>
                        <p class="text-muted" style="font-size: 16px;">用户登录</p>
                    </div>

                    <form action="{:url('publiz/login')}" method="post" class="form-horizontal">
                        <div class="form-group">
                            <div class="col-md-12">
                                <input type="text" class="form-control input-lg" id="username" name="name"
                                       placeholder="请填写用户名" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-12">
                                <input type="password" class="form-control input-lg" id="passowrd" name="password"
                                       placeholder="请填写密码" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-12">
                                <div class="checkbox">
                                    <label> <input type="checkbox" id="login-remember-me" name="rememberMe">
                                        7天内自动登录（公共场合不要勾选）
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group last">
                            <div class="col-md-12">
                                <button type="submit" id="submit" class="btn btn-primary btn-block btn-lg">登 录</button>
                            </div>
                        </div>
                        <div class="alert alert-danger hide alert-dismissable" id="alert"
                             style="margin-top: 5px; margin-bottom: 0px;">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                            aOh! <span class="alert-content"></span>
                        </div>
                        <hr/>
                    </form>
                </div>
            </div>
            <div style="color: #aaa;">
                2017-{:date('Y')} &copy; {:config('company_title')}
                <div class="pull-right">V {:config('app_version')}</div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $('#username').focus();

        /*$("form").submit(function() {
            var self = $(this);
            $.post(self.attr("action"), self.serialize(), success, "json");
            return false;
            function success(data) {
                if (data.status) {
                    window.location.href = data.url;
                } else {
                    $('#alert').find('.alert-content').text(data.info);
                    $("#alert").removeClass('hide');
                }
            }
        });*/
    });
</script>
</body>
</html>
